<template>
  <div>
    <a-page-header title="店铺设置" @back="() => $router.go(-1)" style="background-color: #fff" />
    <page-header-wrapper v-if="store_id">
      <a-card :bordered="false">
        <a-tabs v-model="storeSetingTab">
          <a-tab-pane key="4" tab="基础设置">
            <OtherSetting :storeId="store_id"></OtherSetting>
          </a-tab-pane>
          <a-tab-pane key="3" tab="让利设置">
            <TransferProfitSetting :storeId="store_id"></TransferProfitSetting>
          </a-tab-pane>
<!--          <a-tab-pane key="5" tab="费用设置">-->
<!--            <PriceSetting :storeId="store_id"></PriceSetting>-->
<!--          </a-tab-pane>-->
          <a-tab-pane key="6" tab="修改信息">
            <EditPass :storeId="store_id"></EditPass>
          </a-tab-pane>
          <!-- <a-tab-pane key="share" tab="联盟用户分销设置">
            <ShareSetting :storeId="store_id"></ShareSetting>
          </a-tab-pane>
          <a-tab-pane key="2" tab="推荐人设置">
            <ReferralSetting :storeId="store_id"></ReferralSetting>
          </a-tab-pane> -->
          <a-tab-pane key="copyright" tab="底部版权">
            <Copyright :store_id="store_id"></Copyright>
          </a-tab-pane>
        </a-tabs>
      </a-card>
    </page-header-wrapper>
  </div>
</template>

<script>
import ShareSetting from './setting/Share'
import ReferralSetting from './setting/Referral'
import TransferProfitSetting from './setting/TransferProfit'
import OtherSetting from './setting/Other'
import PriceSetting from './setting/PriceSetting'
import EditPass from './setting/EditPass'
import Copyright from './setting/Copyright'
export default {
  components: {
    ShareSetting,
    ReferralSetting,
    TransferProfitSetting,
    OtherSetting,
    PriceSetting,
    EditPass,
    Copyright
  },
  data() {
    return {
      //商城id
      store_id: '',
      storeSetingTab: '4',
      isSuperAdmin: false,
    }
  },
  created() {
    if (this.$route.query.id) {
      this.store_id = this.$route.query.id
    }
  },
}
</script>

<style lang="less" scoped>
</style>
